package com.dt76.smallloanbackenduser.remote.lhuaw;

import com.dt76.smallloanbackenduser.hystrix.lhuaw.lhuawHystrix;
import com.dt76.smallloanbackenduser.pojo.lhuaw.SystemMessage;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = lhuawHystrix.class)
public interface SystemMessagetest {
    //系统消息
    @RequestMapping("/lhuaw/getAll")
    List<SystemMessage> getAll();
    @RequestMapping("/lhuaw/qryConditionPageAll")
    public Page qryConditionPageAll(
            @RequestParam("pageIndex") int pageIndex,
            @RequestParam("messageTitle")String messageTitle,
            @RequestParam("publisher")String publisher);
    //删除
    @RequestMapping("/lhuaw/delSystem")
    public Result delSystem(@RequestParam("sId") int sId);
    //新增
    @RequestMapping(value = "/lhuaw/addSystem")
    Result addSystem(@RequestBody SystemMessage systemMessage);
    //查看
    @RequestMapping("/lhuaw/seeSystem")
    public SystemMessage seeSystem(@RequestParam("sId") int sId);
//系统消息

}
